<include file="Public/header"/>
<body>
<header>
<div class="tab_nav">
  <div class="header">
    <div class="h-left"><a class="sb-back" href="javascript:history.back(-1)" title="返回"></a></div>
    <div class="h-mid"><img src="__STATIC__/images/toplogo.png">分享积分转电子积分</div>
    <div class="h-right">
      <aside class="top_bar">
        <div onClick="show_menu();$('#close_btn').addClass('hid');" id="show_more"><a href="javascript:;"></a> </div>
      </aside>
    </div>
  </div>
</div>
</header>
<include file="Public/menu"/>
<div id="tbh5v0"> 
<div class="Personal">
  <div id="tbh5v0">
    <div class="innercontent1" >
      <form method="post" action="" id="edit_profile"  onSubmit="return checkinfo()">
        <div class="name"><span>账号：</span>
          <input type="text" name="account" id="account" value="{$user.account}" placeholder="*账号" class="c-f-text">
        </div>
        <div class="name">
          <label for="email_ep"> <span>转账类型：</span>
            <select name="type"  class="dfinput">
                <option value="zuce_money">{$tpshop_config['zfuwl_u2']}</option>
            </select>
          </label>
        </div>
        <div class="name">
          <label for="email_ep"> <span>转账金额：</span>
            <input id="money" name="price" type="text" onpaste="this.value=this.value.replace(/[^\d.]/g,'')" onKeyUp="this.value=this.value.replace(/[^\d.]/g,'')"/>
           
          </label>
        </div>
        <div class="name"><p>当前分享积分：<b>{$user.share_points}</b></p></div>
        <!-- <div class="name"><p>本操作仅用于补充库存，转换限额3800</p></div> -->
        <div class="name">
          <label for="email_ep"> <span>交易密码：</span>
            <input id="secpwd" name="secpwd" type="password">
          </label>
        </div>   
        <div class="field submit-btn">
          <input type="submit" value="确认提交" class="btn_big1" />
        </div>   
        
      </form>
    </div>

  </div>
</div>

              
</div>

<script language="javascript">
var zuce_money=Number("{$user.zuce_money}");
function checkinfo(){
  var account = $('#account').val();
  var zz_account = $('#zz_account').val();
  var money = $('#money').val(); 
  var secpwd = $('#secpwd').val(); 
  if(account==''){
    alert("账号不能为空");
    return false;
  }

  if(money<=0 || money == ''){
    alert("请正确输入转账金额");
    return false;
  }

  if(secpwd==''){
    alert("交易密码不能为空");
    return false;
  }
  
  return true;
}
</script>
</body>
</html>